package com.NeuglsWorkStudio.UI
{
	import flash.display.Sprite;

	public class GradientBarEx extends GradientBar
	{
		private var _FCover:Sprite;
		
		public function GradientBarEx(BaseColor:int, AWidth:Number, AHeight:Number=45, AIsRound:Boolean=false, ARoundRadius:Number=10, ARoundTriangle:Array=null, BottomNeedHightLight:Boolean=false)
		{
			_FCover=new Sprite();
			this.addChild(_FCover);
			super(BaseColor, AWidth, AHeight, AIsRound, ARoundRadius, ARoundTriangle, BottomNeedHightLight);
		}
		
		override protected function Paint():void{
			super.Paint();
			
			with(_FCover.graphics){
				clear();
				beginFill(0xCCCCCC,0.05);
				drawRect(0,0,this.Width,this.Height/2);
				endFill();
			}	
			_FCover.x=0;
			_FCover.y=0;
		}
		
	}
}